//
//  ViewController.m
//  hello world
//
//  Created by kenzo on 05.03.12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController
//@synthesize labelmsg;
//@synthesize labelmsg;



- (void)viewDidUnload
{
    //labeltime = nil;
    Textbtn1 = nil;
    textbtn2 = nil;
    labelmsg=nil;
    //[self setLabelmsg:nil];
    //[self setLabelmsg:nil];
    labelmsg = nil;
    [super viewDidUnload];
    // Release any retained subviews of the main view.
}

//активируем реакцию на переворот экрана
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return YES;
}
- (BOOL)textFieldShouldReturn:(UITextField *)theTextField {
    
    [theTextField resignFirstResponder];
    return YES;
}


- (IBAction)buttonPressed:(id)sender {
       mylabel.text = @"Все Круто!";
    helloworldbutton.hidden = YES;}

- (IBAction)buttonPressed1:(id)sender {
    NSString *FirstName = Textbtn1.text;
    NSString *LastName = textbtn2.text;
    NSString *Message = nil;
    //Message=@"Было введено", FirstName, LastName;
    Message = [[NSString alloc] initWithFormat:@"Привет %@ %@", FirstName, LastName];
    labelmsg.text=Message;}


@end
